<template>
  <el-container>
    <el-header class="bd-row">
      <el-button @click="dialogFormVisible = true">新建</el-button>
    </el-header>

    <el-main class="bd-row">
      <el-table :data="tableData">
        <el-table-column prop="date" label="日期" width="140">
        </el-table-column>
        <el-table-column prop="name" label="姓名" width="120">
        </el-table-column>
        <el-table-column prop="address" label="地址">
        </el-table-column>
      </el-table>
      <el-dialog :visible="dialogFormVisible">
        <el-form>
          <el-form-item label="日期">
            <el-input></el-input>
          </el-form-item>
          <el-form-item label="姓名">
            <el-input></el-input>
          </el-form-item>
          <el-form-item label="地址">
            <el-input></el-input>
          </el-form-item>
        </el-form>
        <span slot="footer" class="dialog-footer">
            <el-button @click="dialogFormVisible = false">取 消</el-button>
            <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
          </span>
      </el-dialog>
    </el-main>
  </el-container>
</template>

<script>
  export default {
    name: "Demo",
    data() {
      return {
        dialogFormVisible: false
      }
    }
  }
</script>

<style scoped>

</style>
